home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.10 Oct 90 / NewToolBox.π / NewToolBox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-07  |  3.2 KB  |  112 lines  |  [TEXT/KAHL]

  1. /*
  2. ---------------------------------------
  3.       I N C L U D E   F I L E S
  4.                       
  5.              C O N S T A N T S
  6.              
  7.                          &
  8.      
  9.  R O U T I N E S    I N T E R F A C E 
  10.  
  11. ---------------------------------------
  12.  
  13. */
  14.  
  15.  
  16.  
  17. /*
  18. ---------------------- 
  19. */
  20.     
  21. #ifndef    _NewToolBox_
  22. #define _NewToolBox_
  23.         
  24. typedef struct WindInfoRec {
  25.                                 Point        Worigin;
  26.                                 Rect        WContRect;
  27.                                 TEHandle    WactivTxt;
  28.                                 ListHandle    WactivLst;
  29.                                 Boolean        Wgrow;
  30.                                 THPrint        WPrintRec;    
  31.                                 ProcPtr        WindProc;
  32.                                 int            WvRefNum;
  33.                                 long        WAuxRefC;
  34.                                 Handle        WText;
  35.                                 Handle        WList;
  36.                                 Handle        WPic;
  37.                             } WindInfoRec,*WindInfoPtr,**WindInfoHdl;
  38.  
  39. typedef struct ListAuxRec    {
  40.                                 int            ID;
  41.                                 ListHandle    theList;
  42.                                 Handle        nextList;
  43.                                 int            fontList;
  44.                                 int            sizList;
  45.                             } ListAuxRec,*ListAuxPtr,**ListAuxHdl;
  46.                             
  47. typedef struct PicAuxRec    {
  48.                                 int                ID;        
  49.                                 PicHandle        thePic;            
  50.                                 Handle            nextPic;
  51.                                 int                tMode;
  52.                                 Rect            destRect;
  53.                             } PicAuxRec,*PicAuxPtr,**PicAuxHdl;
  54.                             
  55. typedef struct TEAuxRec        {
  56.                                 int            ID;        
  57.                                 TEHandle    theText;            
  58.                                 Handle        nextText;
  59.                             } TEAuxRec,*TEAuxPtr,**TEAuxHdl;
  60.  
  61. typedef struct ControlAuxRec {                            
  62.                                 int            contrlID;
  63.                                 ProcPtr        contrlProc;
  64.                             } ControlAuxRec,*ControlAuxPtr,**ControlAuxHdl;
  65.                             
  66. /*
  67. ----------------------
  68. */
  69.  
  70. extern pascal OSErr        InstalWindow();
  71. extern pascal void         DeInstalWindow(WindowPtr whichWindow);
  72. extern pascal void         ExecWindow();
  73. extern pascal Handle    GetWindowAuxRec(WindowPtr whichWindow);
  74. extern pascal void         GetWindowClip(Rect *contentRect,Point *clipOrigin,
  75.                                       WindowPtr whichWindow);
  76. extern pascal void         SetWindowClip(Rect *contentRect,Point clipOrigin,
  77.                                       WindowPtr whichWindow);
  78. extern pascal void         SetCurrents(TEHandle CurrentText,ListHandle CurrentList,
  79.                                     WindowPtr whichWindow);
  80. extern pascal void        GetCurrents(TEHandle *CurrentText,ListHandle *CurrentList,
  81.                                     WindowPtr whichWindow);
  82. extern pascal Boolean    WindowWithGrow(WindowPtr whichWindow);
  83.  
  84. extern pascal void        ActivateText(WindowPtr whichWindow);
  85. extern pascal void        DeactivateText(WindowPtr whichWindow);
  86. extern pascal void        DrawTexts(WindowPtr whichWindow);
  87. extern pascal OSErr        InstalText(int textID,WindowPtr whichWindow);
  88. extern pascal TEHandle    FindText(Point thePoint,WindowPtr whichWindow);
  89.  
  90. extern pascal void         DeactivateList(WindowPtr whichWindow);
  91. extern pascal void         ActivateList(WindowPtr whichWindow);
  92. extern pascal void         ListKey(char key,ListHandle inList);
  93. extern pascal void         DrawLists(WindowPtr whichWindow);
  94. extern pascal ListHandle FindList(Boolean testControl,Point thePoint,
  95.                                   WindowPtr whichWindow);
  96. extern pascal OSErr         InstalList(int listID,WindowPtr whichWindow);
  97.  
  98. extern pascal OSErr        InstalPict(int PicID,WindowPtr whichWindow);
  99. extern pascal void        DrawPicts(WindowPtr whichWindow);
  100. extern pascal PicHandle    FindPict(Point thePoint,WindowPtr whichWindow);
  101.  
  102. extern pascal OSErr        InstalControl();
  103. extern pascal void        ExecControl(ControlHandle theControl);    
  104. extern pascal void        HiliteAllControls(int HiliteState,WindowPtr whichWindow);    
  105.  
  106. #endif _NewToolBox_
  107.  
  108. /*
  109. ----------------------
  110. */
  111.         
  112.